<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sign In</title>
    <link rel="stylesheet" type="text/css" href="<c:url value='/CSS/user/signIn.css'/>"/>
  </head>
  <body>
    <div class="container">
      <jsp:include page="/WEB-INF/JSP/head.jsp"/>
      <div class="body">
        <div class="signin">
          <form action="<c:url value="/user/signIn"/>" method="post">
            <div class="title">User Sign In With Existing Account</div>
            <c:if test="${!empty message}">
              <div class="red">${message}</div>
            </c:if>
            <div class="group">
              <div class="label">User Name:</div>
              <div class="field">
                <input type="text" name="userName" placeholder="Email or UserName"/>
              </div>
            </div>
            <div class="group">
              <div class="label">Password:</div>
              <div class="field">
                <input type="password" name="password" placeholder="Password"/>
              </div>
            </div>
            <div class="buttons">
              <input type="submit" value="Sign In"/>&nbsp;
              <input type="button" value="Home" onclick="javascript:window.location.href='<c:url value='/index'/>';"/>
            </div>
          </form>
        </div>
      </div>
      <jsp:include page="/WEB-INF/JSP/foot.jsp"/>
    </div>
  </body>
</html>